libxc: reorganize domain builder guest memory allocator
authorJuergen Gross <jgross@suse.com>
Thu, 12 Nov 2015 13:43:28 +0000 (14:43 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 16 Nov 2015 13:18:51 +0000 (13:18 +0000)
commitea7c8a3d0e823d4122dbe4aef40496f9f97c1449
tree01515a9d657bfa8b19122d524cb4b7fc1bfb889c
parent6853c9bf9ff06f7e24830ae91ca95af5f1642ca5
libxc: reorganize domain builder guest memory allocator

Guest memory allocation in the domain builder of libxc is done via
virtual addresses only. In order to be able to support preallocated
areas not virtually mapped reorganize the memory allocator to keep
track of allocated pages globally and in allocated segments.

This requires an interface change of the allocate callback of the
domain builder which currently is using the last mapped virtual
address as a parameter. This is no problem as the only user of this
callback is stubdom/grub/kexec.c using this virtual address to
calculate the last used pfn.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
stubdom/grub/kexec.c
tools/libxc/include/xc_dom.h
tools/libxc/xc_dom_core.c